package com.loveprogrammer.dto.battle;

import com.loveprogrammer.dto.base.RequestBase;
import com.loveprogrammer.pojo.StringMessage;
import lombok.Data;

import java.util.List;


public class MapChoose extends RequestBase {

    /***
     * 可选地图列表
     */
    private List<MapItem> mapList;

    public MapChoose() {
    }

    public MapChoose(StringMessage message) {
        super(message);
    }

    @Data
    public static class MapItem {
        private String id;

        private String name;

        private int level;

        private String desc;

        @Override
        public String toString() {
            return "地图 {" +
                    " 名称 ='" + name + '\'' +
                    ", 级别 =" + level +
                    ", 说明 ='" + desc + '\'' +
                    '}';
        }
    }

    public List<MapItem> getMapList() {
        return mapList;
    }

    public void setMapList(List<MapItem> mapList) {
        this.mapList = mapList;
    }
}
